package com.yitong.equipment.ext

import androidx.recyclerview.widget.RecyclerView


fun RecyclerView.init(layoutManger: RecyclerView.LayoutManager, bindAdapter: RecyclerView.Adapter<*>, isScroll: Boolean = false): RecyclerView {
    layoutManager = layoutManger
    setHasFixedSize(true)
    adapter = bindAdapter
    isNestedScrollingEnabled = isScroll
    return this
}